/*
 * @文件描述: 
 * @版本: 
 * @作者: 周晨阳
 * @Date: 2021-04-18 15:07:10
 */
#ifndef VOLTAGEMETER_H
#define VOLTAGEMETER_H
#include "public.h"
#include "typedef.h"


//电压单位的宏
#define UNIT_V 3
#define UNIT_MV 4
#define UNIT_UV 5

#define KEY_ON 1
#define KEY_OFF 0



void VoltageMeterInit();
void openVoltageMeter();
void closeVoltageMeter();
unsigned char getVoltageMeterState();
void changeVoltageFactor(int factor);
int getVoltageFactor();
float getVoltage();
float getRawVlotage();
unsigned char getU_Unit();
//电压表的looper，需要放在main的while中不停的循环以便一直能获取最新的数值
void VoltageMeterLooper();
float getNiddelAngle();

#endif